Skip to content

Fix zeep for httpx after 0.28.0#1468

Closed
CrafterKolyan wants to merge 1 commit into
mvantellingen:mainfrom
CrafterKolyan:fix-zeep-for-httpx-0.28.0
Closed

Fix zeep for httpx after 0.28.0#1468
CrafterKolyan wants to merge 1 commit into
mvantellingen:mainfrom
CrafterKolyan:fix-zeep-for-httpx-0.28.0

Conversation

@CrafterKolyan

Copy link
Copy Markdown

Current version of zeep is actually incompatible with httpx>=0.28.0.

See https://github.com/encode/httpx/releases/tag/0.28.0 for removal of proxies keyword.
See https://github.com/encode/httpx/releases/tag/0.26.0 for deprecation of proxies keyword.

Comment thread src/zeep/transports.py
verify=verify_ssl,
proxies=proxy,
timeout=timeout,
**({"proxies": proxy} if httpx.__version__ < "0.28.0" else {"proxy": proxy}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version check is incorrect:

>>> "0.3.0" <= "0.28.0"
False

0.3.0 being older than 0.28.0 should be using proxy.

See #1447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants